package com.gmail.drheiniger.backend;

public class Book {

	// Book book = new Book(); <-- This can't be here, or there will be
	// stackOverflow errors
	private String title;
	private String author;
	private String year;
	private String rating;
	private String content;

	public Book() {
		title = "";
		author = "";
		year = "";
		rating = "";
		content = "";
	}
	
	public Book(String title, String author, String year, String rating, String content) {
		this.title = title;
		this.author = author;
		this.year = year;
		this.rating = rating;
		this.content = content;
	}

	// setters
	public void setTitle(String title) {
		this.title = title;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public void setRating(String rating) {
		this.rating = rating;
	}

	public void setContent(String content) {
		this.content = content;
	}

	// getters
	public String getTitle() {
		return title;
	}

	public String getAuthor() {
		return author;
	}

	public String getYear() {
		return year;
	}

	public String getRating() {
		return rating;
	}

	public String getContent() {
		return content;
	}
}
